<!-- Main wrapper -->
<div class="login-wrapper">
    <div class="login">

        <a href="javascript:void(0);" title="" class="login-logo"><img
                src="<?php echo Yii::app()->baseUrl; ?>/images/login-logo.png" alt=""/></a>
        <!-- Login block -->
        <div class="well">
            <div class="navbar">
                <div class="navbar-inner">
                    <h6><i class="font-user"></i>Inicio de Sesi&oacute;n</h6>

                    <div class="nav pull-right">
                        <a href="javascript:void(0);" class="dropdown-toggle just-icon" data-toggle="dropdown"><i
                                class="font-cog"></i></a>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="javascript:void(0);"><i class="font-plus"></i>Register</a></li>
                            <li><a href="javascript:void(0);"><i class="font-refresh"></i>Recover password</a></li>
                            <li><a href="javascript:void(0);"><i class="font-cog"></i>Settings</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <?php $form = $this->beginWidget('CActiveForm', array(
                'id' => 'login-form',
                'enableClientValidation' => true,
                'clientOptions' => array(
                    'validateOnSubmit' => true,
                    'afterValidate' => 'js:iniciarSesion'
                ),
                'htmlOptions' => array(
                    'class' => 'row-fluid'
                )
            )); ?>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'username', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->textField($model, 'username', array('class' => 'span12', 'placeholder' => 'nombre de usuario')); ?>
                        <?php echo $form->error($model, 'username'); ?>
                    </div>
                </div>

                <div class="control-group">
                    <?php echo $form->labelEx($model, 'password', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->passwordField($model, 'password', array('class' => 'span12', 'placeholder' => 'password')); ?>
                        <?php echo $form->error($model, 'password'); ?>
                    </div>
                </div>

                <div class="login-btn">
                    <?php echo CHtml::submitButton('Iniciar Sesión', array('class' => 'btn btn-info btn-block btn-large', 'id' => 'iniciar-sesion')); ?>
                </div>

                <div id="accion">

                </div>
                <!-- /login block -->
            <?php $this->endWidget(); ?>
        </div>


    </div>
    <!-- /main wrapper -->